package com.yyh.result.code;

/**
 * 基础的结果状态码
 *
 * @author xuan
 * @create 2021/12/11
 */
public enum BaseResultCode implements ResultCodeInterface
{
    SUCCESS(0, "成功"),
    FAILURE(1, "失败");

    private Integer code;
    private String message;

    BaseResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
